<template>
  <div>
    <van-swipe class="my-swipe" :autoplay="2000" :show-indicators="false">
      <van-swipe-item v-for="item in banners" :key="item">
        <a :href="item.link"><img :src="item.image"></a>
      </van-swipe-item>
    </van-swipe>
  </div>

</template>

<script>
  export default {
    name: 'homeswiper',
    props:{
      banners:{
        type: Array,
      }
    },
  }
</script>

<style>
  img{
    width: 100%;
    height: auto;
  }
</style>
